package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

import java.util.ArrayList;
import java.util.List;

/**
 * 病例模版管理对象 dms_case_model_catalog
 * 
 * @author ruoyi
 * @date 2020-08-22
 */
public class DmsCaseModelCatalog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 层级（增加时不需传入） */
    private Integer level;

    /** 父类Id */
    private Long parentId;

    /** 类型 */
    private Integer type;

    /** 状态： 1 正常（增加时不需传入） */
    private Integer status;

    /** 模板id */
    private Long modelId;

    /** 范围:0个人 1科室 2全院 */
    private Long scope;

    /** 所属人Id */
    private Long ownId;

    /** 病历模板 */
    @Excel(name = "病历模板")
    private String name;

    /** 子病历模板目录 */
    private List<DmsCaseModelCatalog> children = new ArrayList<DmsCaseModelCatalog>();

    public List<DmsCaseModelCatalog> getChildren() {
        return children;
    }

    public void setChildren(List<DmsCaseModelCatalog> children) {
        this.children = children;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel()
    {
        return level;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setModelId(Long modelId) 
    {
        this.modelId = modelId;
    }

    public Long getModelId() 
    {
        return modelId;
    }
    public void setScope(Long scope) 
    {
        this.scope = scope;
    }

    public Long getScope() 
    {
        return scope;
    }
    public void setOwnId(Long ownId) 
    {
        this.ownId = ownId;
    }

    public Long getOwnId() 
    {
        return ownId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("level", getLevel())
            .append("type", getType())
            .append("status", getStatus())
            .append("modelId", getModelId())
            .append("scope", getScope())
            .append("ownId", getOwnId())
            .append("createTime", getCreateTime())
            .append("name", getName())
            .toString();
    }
}
